<template>
    <Confirm :value="isShow" :title="title"
        @on-cancel="cancel()"
        @on-confirm="confirm()"
        :close-on-confirm="confirmClose"
        @on-show='show()'
        >
       <slot></slot>
    </Confirm>
</template>
<script>
import { Confirm } from 'vux'
export default {
    name:"popupBcs",
    props:{
        title:{
            type:String,
            default:'提示'
        },
        isShow:{
            default:true
        },
        confirmClose:{          //是否在点击确定后关闭弹窗
            default:false,
        }
    },
    data (){
        return {
            phoneState:true,
        }
    },
    methods:{
        cancel(){
            this.$emit('cancel');
        },
        confirm(){
            this.$emit('confirm');
        },
        show(){
            this.$emit('show');
        }
    },
    components: {
        Confirm
    },
}
</script>
<style lang='less'>
.weui-mask{
    z-index:100 !important;
}
.weui-dialog{
    border-radius: 19px !important;
    z-index:110 !important;
    a.weui-dialog__btn_primary{
        background:#ff3b2f;
        color:white;
    }
    a.weui-dialog__btn_default{
        color:#cdccd1;
    }
}
</style>

